-- GENERATED SPELL FOR [Arakkoa Talon Guard] --


function spell0_32228(pUnit, Event) --@Gushing Wound,n/a--
pUnit:FullCastSpellOnTarget(39215,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32228', 25000, 1)
end

function spell1_32228(pUnit, Event) --@Howling Screech,Self--
pUnit:FullCastSpellOnTarget(54462,pUnit)
pUnit:RegisterEvent('Sorts_32228', 6291, 1)
end

function spell2_32228(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32228', 664, 1)
end

function Sorts_32228(pUnit, Event)
local choix_sorts_32228 = math.random(0, 2)
if choix_sorts_32228 == 0 then
pUnit:RegisterEvent('spell0_32228', 1, 1)
end
if choix_sorts_32228 == 1 then
pUnit:RegisterEvent('spell1_32228', 1, 1)
end
if choix_sorts_32228 == 2 then
pUnit:RegisterEvent('spell2_32228', 1, 1)
end
end

function mob32228_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32228', math.random(1500, 3000), 1)
end

function mob32228_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32228_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32228_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32228, 1, 'mob32228_Action')
RegisterUnitEvent(32228, 2, 'mob32228_Leave')
RegisterUnitEvent(32228, 3, 'mob32228_Kill')
RegisterUnitEvent(32228, 4, 'mob32228_Die')
